package com.example.springcloudseata.fegin;

import com.xuewei.springcloudcommon.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(path = "/user", contextId = UserServiceFegin.BEAN_ID, qualifier = UserServiceFegin.BEAN_ID,
        name = UserServiceFegin.BEAN_ID)
public interface UserServiceFegin {

    String BEAN_ID = "comsumer";

    @GetMapping(value = "/get/{id}")
    Result getUserById(@PathVariable Integer id);

    @GetMapping(value = "/add")
    void add();


}
